package com.codi.bus.core.resultModel;

import com.alibaba.fastjson.annotation.JSONField;
import com.codi.base.domain.BaseDomain;
import com.codi.base.util.DateUtils;
import lombok.Data;
import lombok.experimental.Accessors;
import lombok.extern.slf4j.Slf4j;

import java.util.Date;

@Data
@Slf4j
@Accessors(chain = true)
public class FundCombinationResult extends BaseDomain {
    private static final long serialVersionUID = 1L;
    private Long combinationId;

    private String combinationName;

    private String briefIntroduction;

    private Float annualizedIncome;

    private String combinationCode;

    private String innerCombCode;

    private String accumulatedIncome;
    /**
     * 组合成立日期
     */
    @JSONField(format = "yyyy-MM-dd HH:mm:ss")
    private Date createDate;
    /**
     * 运行天数
     */
    private Integer runDay;

    public String getCreateDateStr() {
        Date createDate = this.createDate;
        return DateUtils.formatDate(createDate) + " 设立";
    }
}
